package com.hsc.yalebao.tools;

import android.os.AsyncTask;
import android.os.Handler;
import android.os.Message;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class DomainToIPTask extends AsyncTask<String, Integer, String> {
    Handler handler;

    public DomainToIPTask(Handler paramHandler) {
        this.handler = paramHandler;
    }

    protected String doInBackground(String[] paramArrayOfString) {
        Message localMessage = new Message();
        try {
            localMessage.what = -1;
            localMessage.obj = InetAddress.getByName(paramArrayOfString[0]).getHostAddress();
            this.handler.sendMessage(localMessage);
            return null;
        } catch (UnknownHostException localUnknownHostException) {
            while (true) {
                localUnknownHostException.printStackTrace();
                this.handler.sendEmptyMessage(0);
            }
        }
    }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.tools.DomainToIPTask
 * JD-Core Version:    0.6.2
 */